package de.bbl.android.fragment.DataCenter.Playoffs;

import android.app.Activity;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.webkit.WebView;
import de.bbl.android.BBLAndroidFragmentActivity;
import de.bbl.android.R;

public class DataCenterPlayoffsFragment extends Fragment {
	Activity activity;

	public void onActivityCreated(Bundle savedInstanceState) {
        super.onActivityCreated(savedInstanceState);
        activity = getActivity();
	}
	
	@Override
	public void onViewCreated(View view, Bundle savedInstanceState) {
		super.onViewCreated(view, savedInstanceState);
	}

	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
		View view = inflater.inflate(R.layout.webview_playoffs, container, false);
		WebView webView = (WebView) view.findViewById(R.id.webView_Playoffs);
		String[] dataArrayUrl = getResources().getStringArray(R.array.Data_Files_Url);
		String dataUrl = dataArrayUrl[BBLAndroidFragmentActivity.DATA_PLAYOFF_PICTURE];
		webView.loadUrl(getResources().getString(R.string.main_url) + dataUrl);
		// webView.getSettings().setJavaScriptEnabled(true);
		webView.getSettings().setSupportZoom(true);
		webView.getSettings().setBuiltInZoomControls(true);
		return view;
	}

}
